
import java.util.*;
import java.io.*;

public class WriteImageType {
	static public void main(String args[]) throws Exception {
		try {
		//This is how you write an image, instantiate a new writeImage class, then call the function write_image with arguments filename and a hashmap
		writeImage writer = new writeImage();
		HashMap<String, GraphrDataType> canvas = writer.sampleCanvas();
		System.out.println(canvas);
		writer.write_image("artichoke.png", canvas);
		
	
        
		} catch (IOException ie) {
			ie.printStackTrace();
		}

	}
	
}

